/*********************/
/** LightInfoResponse.java */
/*********************/
package atag.apps.mainApp;
import atag.j2mespecific.*;
import java.io.IOException;
import java.io.DataOutput;
import java.io.DataInput;


public class LightInfoResponse implements Serializable {
	private int ID;
	private int lightReading;

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public int getLightReading() {
        return lightReading;
    }

    public void setLightReading(int lightReading) {
        this.lightReading = lightReading;
    }
        
    public void serialize(DataOutput dg) throws IOException {
    //--Be careful to include all variables
        dg.writeInt(this.ID);
        dg.writeInt(this.lightReading);
    }
    public void deserialize(DataInput dg) throws IOException, 
        ClassNotFoundException, IllegalAccessException, InstantiationException {
    //--Be careful to maintain the same order as the method above
        this.ID = dg.readInt();
        this.lightReading = dg.readInt();
    }
}
